package org.kl.wx.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.kl.bf.entity.AuditableEntity;
import org.kl.bf.entity.Excel;

/**
 * 微信用户组
 */

@Entity
@Table(name = "wx_groups")
public class Groups extends AuditableEntity {
	private static final long serialVersionUID = 1L;
	
	@Excel(exportName = "所属公共账号", exportProperty = "appName")
	private App app;
	@Excel(exportName = "微信分组Id")
	private Integer originGroupId;
	@Excel(exportName = "组名")
	private String groupName;
	@Excel(exportName = "用户数量")
	private Integer userCount;
	
	public Groups(){
	}	
	
	public Groups(String id){
		this.id = id;
	}
	 
	
	@ManyToOne
	@JoinColumn(name = "appId")
	public App getApp() {
		return app;
	}
	public void setApp(App app) {
		this.app = app;
	}
	
	public Integer getOriginGroupId() {
		return originGroupId;
	}
	public void setOriginGroupId(Integer originGroupId) {
		this.originGroupId = originGroupId;
	}
	
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	
	public Integer getUserCount() {
		return userCount;
	}
	public void setUserCount(Integer userCount) {
		this.userCount = userCount;
	}
}
